package com.xunqi.sell.pojo;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 *  订单详情表
 * @author Jerry
 */

@Entity
@Data
@DynamicUpdate
public class OrderDetail {

    @Id
    @Column(name = "detail_id")
    private String id;

    /** 订单id  */
    private String orderId;

    /** 商品id  */
    private String productId;

    /** 商品名称  */
    private String productName;

    /** 单价  */
    private BigDecimal productPrice;

    /** 商品数量  */
    private Integer productQuantity;

    /** 商品小图  */
    private String productIcon;

}
